﻿using System;
namespace GtsServer.Model
{
	/// <summary>
	/// Prize:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Prize
	{
		public Prize()
		{}
		#region Model
		private int _id;
		private string _name;
		private string _image;
		private DateTime? _createtime;
		private bool? _isused;
		private decimal? _price;
        private int _prizetypeid;
        private int _sortNum;
        private string _remark;
        private bool _isTaskCondition;
        private bool _isShopShow;
        private int _exchangeType;
        private int _prizeCount;
        private bool? _isMainGold;

        public bool? IsMainGold
        {
            get { return _isMainGold; }
            set { _isMainGold = value; }
        }

        public int PrizeCount
        {
            get { return _prizeCount; }
            set { _prizeCount = value; }
        }

        public int ExchangeType
        {
            get { return _exchangeType; }
            set { _exchangeType = value; }
        }

        public bool IsShopShow
        {
            get { return _isShopShow; }
            set { _isShopShow = value; }
        }

        public bool IsTaskCondition
        {
            get { return _isTaskCondition; }
            set { _isTaskCondition = value; }
        }

        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

        public int SortNum
        {
            get { return _sortNum; }
            set { _sortNum = value; }
        }
		/// <summary>
		/// 
		/// </summary>
		public int ID
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 奖品名称
		/// </summary>
		public string Name
		{
			set{ _name=value;}
			get{return _name;}
		}
		/// <summary>
		/// 奖品图片
		/// </summary>
		public string Image
		{
			set{ _image=value;}
			get{return _image;}
		}
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? CreateTime
		{
			set{ _createtime=value;}
			get{return _createtime;}
		}
		/// <summary>
		/// 是否启用
		/// </summary>
		public bool? IsUsed
		{
			set{ _isused=value;}
			get{return _isused;}
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal? Price
		{
			set{ _price=value;}
			get{return _price;}
		}
		/// <summary>
		/// 奖品类型id
		/// </summary>
		public int PrizeTypeID
		{
			set{ _prizetypeid=value;}
			get{return _prizetypeid;}
		}
		#endregion Model

	}

    public class PrizeShow : Prize
    {
        private string typeName;
        private string exchangeTypeName;

        public string ExchangeTypeName
        {
            get { return exchangeTypeName; }
            set { exchangeTypeName = value; }
        }

        public string TypeName
        {
            get { return typeName; }
            set { typeName = value; }
        }
    }

    public class ExchangeType
    {
        private int _exchangeID;
        private string _exchangeName;

        public int ExchangeID
        {
            get { return _exchangeID; }
            set { _exchangeID = value; }
        }

        public string ExchangeName
        {
            get { return _exchangeName; }
            set { _exchangeName = value; }
        }
    }
}

